#ifndef POSTDATAHANDLER_H
#define POSTDATAHANDLER_H

#include <QObject>
#include <qhttprequest.h>
#include <qhttpresponse.h>

class PostDataHandler : public QObject
{
    Q_OBJECT
public:
    explicit PostDataHandler(QHttpRequest *request, QHttpResponse *response, QObject *parent = 0);

signals:
    void postDataEnd(QHttpRequest *request, QHttpResponse *response);

public slots:
    void onEnd();

private:
    QHttpRequest *m_request;
    QHttpResponse *m_response;
};

#endif // POSTDATAHANDLER_H
